package edu.jxnu.zhangjinsong.unemploymenttracker.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("notification")
public class Notification {
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    
    @TableField
    private String title;
    
    @TableField
    private String content;
    
    @TableField("recipient_id")
    private String recipientId;
    
    @TableField("sender_id")
    private String senderId;
    
    @TableField("is_read")
    private Boolean isRead;
    
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;
    
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}